/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Math;

/**
 *
 * @author gamas
 */
public class AproxNumeroDecimal {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
       double x=75.3543;
         double y=.3498;

         System.out.println(x + " esta aproximo. " + (double)Math.round(x*100)/100);
         System.out.println(y + " esta aproximo. " + (double)Math.round(y*100)/100);


         System.out.println(Math.round(32.50));
        // Se encarga de redondear la cifra de decimales lo mas que se pueda
    }

}
